package com.cssw.fyzb.wap.service;


import com.cssw.fyzb.base.web.domain.AjaxData;
import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.wap.model.vo.*;
import com.ydn.appserver.MinaAppClient;
import com.ydn.appserver.Request;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author
 */
@Service
public class AdNumPriceService extends BaseService {

    @Autowired
    private MinaAppClient busiClient;

    /**
     * 看广告
     * @param userId
     * @return
     */
    public AjaxData lookAd(Long userId) {
        Request request = new Request("LookAd");
        request.setParameter("userId", userId);
        return convertData(busiClient.send(request));
    }

    /**
     * 已看记录
     * @param userId
     * @return
     */
    public AjaxData adNumPriceLog(Long userId) {
        Request request = new Request("AdNumPriceLog");
        request.setParameter("userId", userId);
        return convertData(busiClient.send(request));
    }

}
